package com.achievement.mapper;

import com.achievement.domain.entity.HonorApplyBookMemberEntity;
import com.achievement.domain.entity.HonorApplyBookMemberEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

public interface HonorApplyBookMemberMapper extends BaseMapper<HonorApplyBookMemberEntity> {
    /**
     * 新增
     * @author hanshicheng
     * @date 2025/02/12
     **/
    int insert(HonorApplyBookMemberEntity honorApplyBookMember);

    /**
     * 刪除
     * @author hanshicheng
     * @date 2025/02/12
     **/
    int delete(int id);

    /**
     * 更新
     * @author hanshicheng
     * @date 2025/02/12
     **/
    int update(HonorApplyBookMemberEntity honorApplyBookMember);

    /**
     * 查询 根据主键 id 查询
     * @author hanshicheng
     * @date 2025/02/12
     **/
    HonorApplyBookMemberEntity load(int id);

    /**
     * 查询 根据申报计划ID查询完成人信息
     * @author hanshicheng
     * @date 2025/02/12
     **/
    List<HonorApplyBookMemberEntity> honorApplyBookMemberByApplyBookId(String applyBookId);

    /**
     * 根据applyBookId删除所有完成人信息
     */
    int deleteHonorApplyBookMemberListByApplyBookId(String applyBookId);
}
